package com.zhang.passer.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 酒店推荐实体类
 */
@TableName("t_jiudian")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class JiuDianDo implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer hid;
    private String name;
    private String content;
    private String position;
    private BigDecimal price;

    //图片列表(非数据库字段)
    @TableField(exist = false)
    private List<ImageDo> images;

    //酒店评论列表
    //private Integer commentID;
}
